package com.ruoyi.pay.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.pay.domain.PayCoinUser;
import com.ruoyi.pay.domain.vo.PayCoinUserVO;

/**
 * 趣币明细Mapper接口
 * 
 * @author ruoyi
 * @date 2022-08-05
 */
public interface PayCoinUserMapper extends BaseMapper<PayCoinUser>
{
    /**
     * 查询趣币明细
     * 
     * @param id 趣币明细主键
     * @return 趣币明细
     */
    public PayCoinUser selectPayCoinUserById(String id);

    /**
     * 查询趣币明细列表
     * 
     * @param payCoinUser 趣币明细
     * @return 趣币明细集合
     */
    public List<PayCoinUser> selectPayCoinUserList(PayCoinUser payCoinUser);

    /**
     * 新增趣币明细
     * 
     * @param payCoinUser 趣币明细
     * @return 结果
     */
    public int insertPayCoinUser(PayCoinUser payCoinUser);

    /**
     * 修改趣币明细
     * 
     * @param payCoinUser 趣币明细
     * @return 结果
     */
    public int updatePayCoinUser(PayCoinUser payCoinUser);

    /**
     * 删除趣币明细
     * 
     * @param id 趣币明细主键
     * @return 结果
     */
    public int deletePayCoinUserById(String id);

    /**
     * 批量删除趣币明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePayCoinUserByIds(String[] ids);

	public Integer getJiaNum(Long userId);

	public Integer getJianNum(Long userId);

	public Integer getCoinNumBySourceId(String sourceId);

	public Integer querySumPay(Long userId);

	public IPage<PayCoinUser> selectPageList(IPage<PayCoinUser> page, PayCoinUser payCoinUser);

	public IPage<PayCoinUserVO> getCoinList(IPage<PayCoinUser> page, PayCoinUser payCoinUser);

	public Integer getPayJiaNum(Long userId);

	public Integer getPayJianNum(Long userId);

	public List<PayCoinUser> getMyPayCoinList(PayCoinUser payCoinUser);

	public IPage<PayCoinUserVO> getMyCoinUserList(IPage<PayCoinUserVO> page, PayCoinUserVO payCoinUser);

	public Integer getMyCashMoney(PayCoinUserVO payCoinUser);
}
